import {
  createBrowserRouter
} from "react-router-dom";

import Layout from "../components/Layout/index";
import Login from '../views/Login/index'
import Home from '../views/Home/index'
import Page404 from "../views/notFound";
const router = createBrowserRouter([
  {
    path: "/",
    element: <Layout></Layout>,
    children: [
      {
        path: "home",
        element: <Home></Home>,
      },
    ],
  },
  {
    path: "/login",
    element: <Login></Login>,
  },
  {
    path: '*',
    element: <Page404></Page404>
  }
])
export default router
